package com.itechart.watchfacts.service.impl;

import com.itechart.watchfacts.dao.orm.HibernateGeneralDAO;
import com.itechart.watchfacts.domain.Brand;
import com.itechart.watchfacts.domain.Color;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by IntelliJ IDEA.
 * User: E.Krasnotschek
 * Date: 7/30/13
 * Time: 8:09 AM
 * To change this template use File | Settings | File Templates.
 */
@Service
public class BrandServiceImpl extends GeneralServiceImpl<Brand>{

    @Override
    @Autowired       //necessary even if it is defined in superclass
    public void setDao(HibernateGeneralDAO<Brand> daoToSet) {
        super.setDao(daoToSet);
        dao.setClazz( Brand.class );
    }
}
